how do hubs work